package com.niu.crm.dao.mapper;


import java.math.BigDecimal;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;

import com.niu.crm.form.StudentSearchForm;
import com.niu.crm.model.Student;

public interface StudentMapper {
	
	int insert(Student student);
	
	int update(Student student);
	
	int delete(Long id);
	
	Student selectByPrimaryKey(Long id);
	Student selectByStuNo(String stuNo);
	List<Student> selectByStuName(String stuName);
	
	List<Student> queryStudent(@Param("params")StudentSearchForm form, @Param("pager")Pageable pager);
	
	Integer countStudent(@Param("params")StudentSearchForm form);
}
